classdef CellOperation
    %CELLOPERATION Summary of this class goes here
    %   Detailed explanation goes here
    
    
    
    methods(Static)
        function res = add(a,b)
            
            s_a = size(a);
            s_b = size(b);
            if s_a ~= s_b
                res = 0;
                return;
            else
                res = a;
            end
            for i = 1:prod(s_a)
                res{i} = a{i} + b{i};
            end
        end
        
        function res = div(numerator,denumerator)
            if numel(denumerator) ~= 1
                res = 0;
                return;
            end
            res = numerator;
            
            
            for i = 1 : numel(numerator)
                res{i} = numerator{i} / denumerator;
            end
                
        end
        
            
    end
    
end

